<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <a href=""></a>
    <script>
        let age = +prompt('请输入您的年龄');

        if (age >= 18) {
            document.write(`<a href="#">www.4399.com</a>可以给你看`);
        }
        else if (age >= 14 && age < 18) {
            let a =confirm('你确定要看吗?');
            if (a == true) {
                document.write(`<a href="#">www.4399.com</a>给你看了，后果自负`);
            }
            else{
                document.write('好孩子，不看也好');
            }
        }
        else{
            document.write('sorry，请回家找妈妈');
        }

    </script>
</body>
</html>